<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>
<td>Name</td>
<td>ISBN</td>
<td>Created</td>
<td>&nbsp;</td>
</tr>
<?php 
foreach ($this->pendingBooks as $book) {
?>
<tr>
<td>
<?php 
if (empty($book->detail_page_url)) {
?>
<a href="javascript: void(0)"><?php echo $book->name?> (<?php echo count(Book::getUser($book, UserBookStatus::AVAILABLE, null))?>)<a>
<?php } else {?>
<a href="<?php echo $book->detail_page_url?>" target="_blank"><?php echo $book->name?> (<?php echo count(Book::getUser($book, UserBookStatus::AVAILABLE, null))?>)<a>
<?php }?>
</td>
<td><?php echo $book->ISBN?></td>
<td><?php echo $book->publication_date?></td>
<td>
    <a href="<?php echo $this->baseurl?>/book/completeinfo/id/<?php echo $book->ISBN?>">Edit</a>
    <a href="<?php echo $this->baseurl?>/book/approve/id/<?php echo $book->ISBN?>">Approve</a>
</td>
</tr>
<?php
}
?>
</table>